<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>

<script type="text/javascript" charset="utf-8" src="__ROOT__/Public/layer/layer.js"></script>

<script type="text/javascript" >

    $(function(){

        layer.prompt({title: '输入返利密码，并确认', formType: 1}, function(pass, index){
            layer.close(index);
            $.ajax({
                type:"post",
                url:"__URL__/new3AgentRebate",
                data:{
                    'pass':pass
                },
                success:function(data){
                    console.info(data);
                    layer.msg(data.msg);
                },

                error:function (data) {
                    console.info(data);
                    layer.msg('服务器繁忙');

                }



            });


//            layer.prompt({title: '随便写点啥，并确认', formType: 2}, function(text, index){
//                layer.close(index);
//                layer.msg('演示完毕！您的口令：'+ pass +'
//                您最后写下了：'+text);
//            });
        });


    });


</script>
</body>
</html>